<form id="message-search-form" class="form-inline well well-sm" action="{{ actionUrl|default('')}}" method="get" novalidate>
  <div class="form-group">
    <select style="max-width:150px;" class="form-control" name="categoryId">
      {{ select_options(category_choices('course'), app.request.query.get('categoryId'), '课程分类') }}
    </select>
  </div>
  {% if showStatusSelect|default(null) %}
    <div class="form-group">
      <select class="form-control" name="status">
        {{ select_options(dict('courseStatus'), app.request.query.get('status'), '课程状态') }}
      </select>
    </div>
  {% endif %}
  <div class="form-group">
    <input class="form-control" type="text" placeholder="标题" name="title" value="{{ app.request.get('title') }}">
  </div>
  <div class="form-group">
    <input class="form-control" type="text" placeholder="创建者" name="creator" value="{{ app.request.get('creator') }}">
  </div>
  <button class="btn btn-primary">搜索</button>

  {% include 'TopxiaAdminBundle:Widget:tooltip-widget.html.twig' with { icon: 'glyphicon-question-sign', content: '公开课说明Tooltip'|trans|raw, placement: 'left'} %}
</form>